package IMIC.NGUYENVANTINH.OOP.LEVEL2.EX1;

public class TriangleEntity {
	private double side1;
	private double side2;
	private double side3;
	

	public TriangleEntity() {
		this.side1 = 1.0;
		this.side2 = 1.0;
		this.side3 = 1.0;

	}

	public TriangleEntity(double side1, double side2, double side3) {
		this.side1 = side1;
		this.side2 = side2;
		this.side3 = side3;

	}

	/**
	 * @return the side1
	 */
	public double getSide1() {
		return side1;
	}

	/**
	 * @param side1
	 *            the side1 to set
	 */
	public void setSide1(double side1) {
		this.side1 = side1;
	}

	/**
	 * @return the side2
	 */
	public double getSide2() {
		return side2;
	}

	/**
	 * @param side2
	 *            the side2 to set
	 */
	public void setSide2(double side2) {
		this.side2 = side2;
	}

	/**
	 * @return the side3
	 */
	public double getSide3() {
		return side3;
	}

	/**
	 * @param side3
	 *            the side3 to set
	 */
	public void setSide3(double side3) {
		this.side3 = side3;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "Triangle: side1 = " + this.side1 + " side2 = " + this.side2 + " side3 = " + this.side3;
	};

}
